<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh">
<head>
    <title>Login Status</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
    <link type="image/x-icon" href="../static/sysimg/favicon.ico" th:href="@{/sysimg/favicon.ico}" rel="shortcut icon"/>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css"
          th:href="@{/ext/bootstrap-4.6.0/css/bootstrap.css}" rel="stylesheet"/>
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css"
          th:href="@{/ext/bootstrap-icons/bootstrap-icons.css}" rel="stylesheet"/>
    <!--<link href="../static/ext/bootstrap-select-1.13.9/css/bootstrap-select.css" th:href="@{/ext/bootstrap-select-1.13.9/css/bootstrap-select.css}" rel="stylesheet"/>-->
    <!--<link href="../static/ext/bootstrap-switch-4.0.0/css/bootstrap-switch.min.css" th:href="@{/ext/bootstrap-switch-4.0.0/css/bootstrap-switch.min.css}" rel="stylesheet"/>-->
</head>
<body>
<div class="container-fluid">
    <div class="d-none">
        <input type="hidden" id="RootURL" th:value="${#request.contextPath}"/>
        <input type="hidden" id="SessionUserId" th:value="${#session.getAttribute('userId')} ?: ''"/>
    </div>
    <div class="d-flex justify-content-center">
        <div class="card my-5 text-center" style="max-width: 540px;">
            <div class="row no-gutters">
                <div class="col-md-4">
                    <img class="img-fluid my-3 mx-2" src="../static/sysimg/logo.png" th:src="@{/sysimg/logo.png}"
                         alt="">
                    <h6>Welcome !</h6>
                </div>
                <div class="col-md-8">
                    <div class="card-body m-2 h-100">
                        <div class="d-flex flex-column justify-content-center h-100">
                            <p>当前会话登录状态：<span th:text="${flag} ? '已登录' : '未登录'">无</span></p>
                            <a th:if="${flag}" th:href="@{/doLogout}"><b>Logout</b></a>
                            <a th:if="!${flag}" th:href="@{/login}"><b>Login</b></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"
        th:src="@{/ext/jquery-3.5.1/jquery-3.5.1.js}"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.bundle.min.js"
        th:src="@{/ext/bootstrap-4.6.0/js/bootstrap.bundle.min.js}"></script>
<script src="../static/js/actionTools.js" th:src="@{/js/actionTools.js}"></script>
</body>
</html>